package com.ocm.tourism.core.service;

import com.ocm.tourism.webclient.model.WebClientModel;
import com.ocm.tourism.webclient.service.WebClientManager;
import com.ocm.tourism.webclient.service.WebClientService;

import java.util.ArrayList;
import java.util.List;

public class NewsLayerServiceImpl implements NewsLayerService {

   private List<WebClientService> webClientServices;

   @Override
   public List<WebClientModel> getOtherNews(){
      List<WebClientModel> webClientModels = new ArrayList<WebClientModel>();
      webClientModels = WebClientManager.instance().getClientModels(webClientServices);
      return webClientModels;
   }

   public List<WebClientService> getWebClientServices() {
      return webClientServices;
   }

   public void setWebClientServices(List<WebClientService> webClientServices) {
      this.webClientServices = webClientServices;
   }
}
